package com.twu.biblioteca;

import java.io.Serializable;
import java.util.Date;
/**
 * Created with IntelliJ IDEA.
 * User: kush jain
 * Date: 7/4/13
 * Time: 3:28 PM
 * To change this template use File | Settings | File Templates.
 */
public class bookTransaction implements Serializable {
    int transactionID,bookID ;
    private Date DateOfReservation;
    private Date DateOfFree;
    bookTransaction(int transactionID)
    {
        this.transactionID= transactionID;
    }
    bookTransaction(int transactionID,int bookID)
    {
        this.transactionID= transactionID;
        this.bookID=bookID;
        DateOfReservation = new Date();
        DateOfFree = null;

    }
    public int getTransactionID()
    {
        return transactionID;
    }
    public int getBookID(){
        return bookID;
    }
    public boolean getReservationStatus(){
        return DateOfFree==null;
    }
    public void setFree()
    {
        DateOfFree = new Date();
    }

}
